package com.itheima.reggie.service;

import com.itheima.reggie.domain.Address;

import java.util.List;
import java.util.Map;


public interface AddressService {

    // 收货地址
    List<Address> list();

    //新增地址
    void save(Address address);

    //设置默认地址
    void setDefault(Long id);

    // 去结算（查询默认收货地址
    Address findDefault();


    //地址回显
    Address findByIdAddress(Long id);

    //修改地址
    void updateByAddress(Address address);

    //删除地址
    void deleteByAddress(Long ids);
}
